<%-- 
    Document   : listadoColaboradores
    Created on : 28/05/2012, 05:46:37 PM
    Author     : xSebastiaNx
--%>

<%@page import="Entidad.Cargo"%>
<%@page import="VO.UsuarioVO"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Listado Colaboradores</title>
    </head>
    <body>
        <table class="table">
			<thead>
				<tr>
					<th>Sel</th>					
					<th>Colaborador</th>
					
					<th>Correo</th>
					
				</tr>
			</thead>
                        <%Iterator itr;%>
                        <% List<UsuarioVO> lista = (List)request.getAttribute("lista");%>
			<tbody>
                            <% for (itr = lista.listIterator(); itr.hasNext(); )
                                    {
                                    %>
                                <tr>
                                        <%UsuarioVO user = (UsuarioVO)itr.next();%>
					<td><input type="checkbox"></td>
                                        <td><%out.print(user.getNombre());%></td>
                                        <td><%for(Cargo cargo:user.getCargoCollection()){ %>
                                            <%out.print(cargo.getNombre()+", ");%>
                                        <%} %></td>
					<td><%out.print(user.getCorreo());%></td>
				</tr>				
			</tbody>
                        <%}%>
			</table>
    </body>
</html>
